package com.netease.demo.live.actvity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.netease.demo.live.R;
import com.netease.demo.live.base.TActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends TActivity {

    @Bind(R.id.live_btn)
    Button liveBtn;
    @Bind(R.id.audience_btn)
    Button audienceBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @OnClick({R.id.live_btn, R.id.audience_btn})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.live_btn:
                EnterActivity.startActivity(MainActivity.this, true);
                break;
            case R.id.audience_btn:
                EnterActivity.startActivity(MainActivity.this, false);
                break;
        }
    }
}
